package pojo;

import java.util.Date;

/**
 * 后台用户实体类
 * @author 叶军军
 */
public class Admin {

    /**
     * ID
     */
    private int adId;

    /**
     * 头像
     */
    private String adImg;

    /**
     * 账号
     */
    private String adAccount;

    /**
     * 密码
     */
    private String adPassword;

    /**
     * 姓名
     */
    private String adName;

    /**
     * 性别
     */
    private int adSex;

    /**
     * 手机号
     */
    private String adPhone;

    /**
     * 邮箱
     */
    private String adEmail;

    /**
     * 描述
     */
    private String adDesc;

    /**
     * 加入时间
     */
    private Date adTime;

    /**
     * 审核状态
     */
    private int adState;

    /**
     * 后台用户角色名称
     */
    private String adRoleName;


    /**
     * setter和getter方法
     */
    public int getAdId() {
        return adId;
    }

    public void setAdId(int adId) {
        this.adId = adId;
    }

    public String getAdImg() {
        return adImg;
    }

    public void setAdImg(String adImg) {
        this.adImg = adImg;
    }

    public String getAdAccount() {
        return adAccount;
    }

    public void setAdAccount(String adAccount) {
        this.adAccount = adAccount;
    }

    public String getAdPassword() {
        return adPassword;
    }

    public void setAdPassword(String adPassword) {
        this.adPassword = adPassword;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public int getAdSex() {
        return adSex;
    }

    public void setAdSex(int adSex) {
        this.adSex = adSex;
    }

    public String getAdPhone() {
        return adPhone;
    }

    public void setAdPhone(String adPhone) {
        this.adPhone = adPhone;
    }

    public String getAdEmail() {
        return adEmail;
    }

    public void setAdEmail(String adEmail) {
        this.adEmail = adEmail;
    }

    public String getAdDesc() {
        return adDesc;
    }

    public void setAdDesc(String adDesc) {
        this.adDesc = adDesc;
    }

    public Date getAdTime() {
        return adTime;
    }

    public void setAdTime(Date adTime) {
        this.adTime = adTime;
    }

    public int getAdState() {
        return adState;
    }

    public void setAdState(int adState) {
        this.adState = adState;
    }

    public String getAdRoleName() {
        return adRoleName;
    }

    public void setAdRoleName(String adRoleName) {
        this.adRoleName = adRoleName;
    }

    /**
     * 无参构造方法
     */
    public Admin() {
    }


    /**
     * 有参构造方法
     * @param adId
     * @param adImg
     * @param adAccount
     * @param adPassword
     * @param adName
     * @param adSex
     * @param adPhone
     * @param adEmail
     * @param adDesc
     * @param adTime
     * @param adState
     * @param adRoleName
     */
    public Admin(int adId, String adImg, String adAccount, String adPassword, String adName, int adSex, String adPhone, String adEmail, String adDesc, Date adTime, int adState, String adRoleName) {
        this.adId = adId;
        this.adImg = adImg;
        this.adAccount = adAccount;
        this.adPassword = adPassword;
        this.adName = adName;
        this.adSex = adSex;
        this.adPhone = adPhone;
        this.adEmail = adEmail;
        this.adDesc = adDesc;
        this.adTime = adTime;
        this.adState = adState;
        this.adRoleName = adRoleName;
    }

    /**
     * 重写toString()方法
     * @return
     */
    @Override
    public String toString() {
        return "Admin{" +
                "adId=" + adId +
                ", adImg='" + adImg + '\'' +
                ", adAccount='" + adAccount + '\'' +
                ", adPassword='" + adPassword + '\'' +
                ", adName='" + adName + '\'' +
                ", adSex=" + adSex +
                ", adPhone='" + adPhone + '\'' +
                ", adEmail='" + adEmail + '\'' +
                ", adDesc='" + adDesc + '\'' +
                ", adTime=" + adTime +
                ", adState=" + adState +
                ", adRoleName='" + adRoleName + '\'' +
                '}';
    }
}
